package com.mdd.common.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mdd.common.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = true)
@TableName("order_switched_car_record")
@ApiModel("换车记录实体")
public class SwitchedCarRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Long id;

    @ApiModelProperty(value = "切换记录编码")
    private String carRecordNo;

    @ApiModelProperty(value = "原车辆编码")
    private String oldCarNo;

    @ApiModelProperty(value = "新车辆编码")
    private String newCarNo;

    @ApiModelProperty(value = "操作类型:1、还车")
    private Integer operationType;

    @ApiModelProperty(value = "原车辆状态：0、正常 1、维修 2、报废")
    private Integer oldCarStatus;
}
